import {
  PROJ_TYPE_SELECT_DATA
} from '@/enum/enum-project'

const PROJ_MAINTAIN_COLS = [
  {
    title: '项目编码',
    dataIndex: "projCode",
    align: "left",
    width: 220
  },
  {
    title: "项目名称",
    dataIndex: "projName",
    align: "left"
  },
  {
    title: "项目类型",
    dataIndex: "projType",
    align: "center",
    width: 100,
    customRender: (text, record, index) => {
      let typeItem = PROJ_TYPE_SELECT_DATA.filter(item => {
        return item.code == text
      })[0]
      return typeItem ? typeItem.title : '暂无'
    }
  },
  {
    title: "所属地区",
    dataIndex: "projRegion",
    align: "center",
    width: 100
  },
  {
    title: "所属年度",
    dataIndex: "projYear",
    align: "center",
    width: 100
  },
  {
    title: "项目经理",
    dataIndex: "projManager",
    align: "left",
    width: 100,
  },
  {
    title: "商务经理",
    dataIndex: "projSaleManager",
    width: 100,
    align: "left",
  }
]

export default PROJ_MAINTAIN_COLS
